window.onload = function init(){
	var obj = document.getElementById("inDate");
	obj.setAttribute("value",getCurrentDate());	
}

//获取当前日期
function getCurrentDate(){
	var currentDate = new Date();
	var trueMonth = currentDate.getMonth()+1;
	if (trueMonth>0&&trueMonth<9) {
		trueMonth="0"+trueMonth;
	}
	var trueDate = currentDate.getDate();
	if (trueDate>0&&trueDate<10) {
		trueDate="0"+trueDate;
	}
	return ""+currentDate.getFullYear()+trueMonth+trueDate;
}